/* 主页配置下的接口管理 */

import http from "./http"

//获取热销信息列表
const indexConfigs = (pageNumber = 1, pageSize = 10, configType = 3) => {
    return http.get('/api/indexConfigs', {
        params: {
            pageNumber, pageSize, configType
        }
    })
};

//热销详细信息
const indexConfigsInfo = (id) => {
    return http.get(`/api/indexConfigs/${id}`)
};
//删除热销信息
const indexConfigsRemove = (ids) => {
    return http.delete('/api/indexConfigs', {
        data: ids
    });

};
//修改热销信息
const indexConfigsUpdate = (data) => {
    return http.put('/api/indexConfigs', data);
};
//新增热销信息
const indexConfigsInsert = (data) => {
    return http.post('/api/indexConfigs', data)
}


export default {
    indexConfigs, indexConfigsInfo, indexConfigsRemove, indexConfigsUpdate, indexConfigsInsert
}